package com.kongxx.struts2study.common.factory;

/**
 * A base service factory to get a real or mock instance.
 */
public class BaseServiceFactory extends AbstractFactory {
	
	/**
	 * Get the instance of implementation class.
	 * @param <T>
	 * @param t
	 * @return
	 * @throws InvalidateServiceException
	 */
	public <T> T getService(Class<T> t) throws InvalidateServiceException {
		GenericServiceFactory<T> factory = new GenericServiceFactory<T>();
		return factory.getService(t);
	}
}
